#ifndef RECORDBUFFER_H
#define RECORDBUFFER_H


#include <iostream>
#include "Data.h"

class RecordBuffer : public Data
{
	protected:
		int handler;
		int offset;
		char* record;
		unsigned int size;

	public:
		RecordBuffer();
		virtual ~RecordBuffer();

		void set(int handler, int offset, char* record, unsigned int size);
		void get(int &handler, int &offset, char* record, unsigned int &size);

		void setKey(int handler, int offset);
		void getKey(int &handler, int &offset);
		unsigned int getSize();

		bool equal(Data* data);
		void copy(Data** data);
		Data* allocate();
		void print();
};


#endif



